<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="C" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>项目办理结果公示详情</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/bootstrap.min.css">
    <script src="${pageContext.request.contextPath}/js/jquery-3.6.0.min.js"></script>
    <!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
    <script src="${pageContext.request.contextPath}/js/bootstrap.min.js"></script>
    <!-- Bootstrap -->
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/item/approveInfo.css">

    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/bootstrap.css"/>
    <%--引入echarts--%>
    <script src="${pageContext.request.contextPath}/js/echarts.js"></script>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/index.css">


    <script>
        console.log(`${itemInfo}`)
        console.log(`${userReport}?1:0`)
        console.log(`${itemAbouts}`)
    </script>
</head>
<body>
<%@include file="../pub/header.jsp" %>
<div class="header">
    <div class="nav">
        <div class="container">

            <div class="row">
                <a class="col-md-3 col-xs-6" href="${pageContext.request.contextPath}/index">首&nbsp;页</a>
                <a class="col-md-3 col-xs-6 " href="${pageContext.request.contextPath}/user/news">新闻资讯</a>
                <a class="col-md-3 col-xs-6" href="${pageContext.request.contextPath}/re_approve/item">办事大厅</a>
                <a class="col-md-3 col-xs-6 active"
                   href="${pageContext.request.contextPath}/item/revealFull">公示信息</a>
            </div>
        </div>
    </div>
</div>
<div class="container first">
    <div class="jggs_topbg">
        <div class="jggsWz"><a href="${pageContext.request.contextPath}/item/revealFull" id="afor">公示信息</a>
            > 公示详细
        </div>
        <p class="jggs_lmtit">项目办理结果公示</p>
        <div class="jggs_con_box">
            <p class="jggs_con_tit">项目基本信息</p>
            <div class="table-responsive">
                <table cellpadding="0" cellspacing="0" class="jggs_con_table" width="100%">
                    <tbody>
                    <tr>
                        <th width="20%">国家编码</th>
                        <td width="30%" style="text-align: left;"
                            id="PROJECT_CODE">${itemInfo.code}</td>
                        <th width="10%">项目名称</th>
                        <td width="40%" style="text-align: left;"
                            id="APPLY_PROJECT_NAME">${itemInfo.name}</td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <p class="jggs_con_tit">审批事项公示信息</p>
            <div class="table-responsive">
                <table cellpadding="0" cellspacing="0" class="jggs_con_table" width="100%">
                    <tbody>
                    <tr>
                        <th width="20%">审批部门</th>
                        <th width="40%">审批事项</th>
                        <th width="12%">审批结果</th>
                        <th width="12%">审批时间</th>
                        <th width="16%">审批文号</th>
                    </tr>
                    <tr>
                        <td id="UNIT_NAME">${itemInfo.dept.name}</td>
                        <td id="ITEM_NAME" style="text-align: left;">${itemInfo.name}</td>
                        <c:choose>
                            <c:when test="${userReport.status=='3'}">
                                <td id="OBTAINRESULT">通过</td>
                            </c:when>
                            <c:when test="${userReport.status=='2'}">
                                <td id="OBTAINRESULT">等待办理</td>
                            </c:when>
                            <c:when test="${userReport.status=='1'}">
                                <td id="OBTAINRESULT">不通过</td>
                            </c:when>
                        </c:choose>
                        <td id="REAL_FINISH_TIME"><fmt:formatDate value="${userReport.processingTime}"
                                                                  pattern="yyyy-MM-dd"/></td>

                        <td id="APPROVAL_NUMBER">${userReport.id}</td>
                    </tr>
                    </tbody>
                </table>
            </div>
<%--            <p class="jggs_con_tit">子项目办理结果</p>--%>
<%--            <div class="table-responsive" id="div">--%>
<%--                <table cellpadding="0" cellspacing="0" class="jggs_con_table" width="100%">--%>
<%--                    <tbody>--%>
<%--                    <tr>--%>
<%--                        <th width="20%">审批部门</th>--%>
<%--                        <th width="40%">审批事项</th>--%>
<%--                        <th width="12%">审批结果</th>--%>
<%--                        <th width="12%">审批时间</th>--%>
<%--                        <th width="16%">审批文号</th>--%>
<%--                    </tr>--%>
<%--                    <c:forEach var="itemAbout" items="${itemAbouts}">--%>


<%--                        <tr>--%>
<%--                            <td>${itemAbout.dept.name}</td>--%>
<%--                            <td style="text-align: left;">${itemAbout.itemAboutName}</td>--%>
<%--                            <c:choose>--%>
<%--                                <c:when test="${itemAbout.status=='1'}">--%>
<%--                                    <td>不通过</td>--%>
<%--                                </c:when>--%>
<%--                                <c:when test="${itemAbout.status=='2'}">--%>
<%--                                    <td>等待办理</td>--%>
<%--                                </c:when>--%>
<%--                                <c:when test="${itemAbout.status=='3'}">--%>
<%--                                    <td>通过</td>--%>
<%--                                </c:when>--%>
<%--                            </c:choose>--%>
<%--                            <td><fmt:formatDate value="${itemAbout.processingTime}" pattern="yyyy-MM-dd"/></td>--%>
<%--                            <td>${itemAbout.id}</td>--%>
<%--                        </tr>--%>
<%--                    </c:forEach>--%>
<%--                    </tbody>--%>
<%--                </table>--%>
<%--            </div>--%>
            <div class="jggs_back">
                <a href="javaScript:history.back(-1)" onclick="close();">返 回</a>
            </div>
        </div>
    </div>
</div>
<%@include file="../pub/footer.jsp" %>
<script>
    let divEle = document.getElementById("afor");
    setInterval(function () {
        divEle.style.backgroundColor = '#2C3658';
    }, 1000);

    // 设置1秒后执行func函数（只调用一次）
    setTimeout(func, 1000);

    function func() {
        setInterval(function () {
            divEle.style.backgroundColor = '#007aff';
        }, 5000)
    }
</script>

</body>
</html>
